package com.boottest.better.test.configurationproperties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "connection.server")
public class ConnectionServerBean {

    private String name;

    private String url;

    private String port;

    private String password;

    private String firstName;

    private String secondName;

    private String threeName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getSecondName() {
        return secondName;
    }

    public void setSecondName(String secondName) {
        this.secondName = secondName;
    }

    public String getThreeName() {
        return threeName;
    }

    public void setThreeName(String threeName) {
        this.threeName = threeName;
    }

    @Override
    public String toString() {
        return "ConnectionServerBean [name=" + name + ", url=" + url + ", port=" + port + ", password=" + password
                + ", firstName=" + firstName + ", secondName=" + secondName + ", threeName=" + threeName + "]";
    }

}
